package com.nervenets.web.controller.order;

import com.nervenets.web.controller.TokenParams;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

@EqualsAndHashCode(callSuper = true)
@Data
public class OrderCancelParams extends TokenParams {
    @ApiModelProperty(value = "订单ID", required = true)
    @Positive(message = "请选择正确的订单ID")
    private long orderId;
    @ApiModelProperty(value = "取消人姓名", required = true)
    @NotNull(message = "请输入取消人姓名")
    private String name;
    @ApiModelProperty(value = "取消原因", required = true)
    @NotNull(message = "请输入取消原因")
    private String reason;
}
